package login;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;

public class LoginServlet extends HttpServlet {

	
	
	private static final long serialVersionUID = 1L;
	private String user;
	private String passwd;
	
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public void init() {user = "practica"; passwd = "practica";}
	
	public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws ServletException, IOException {
			
			doPost(request,response);
	}
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		response.setContentType("text/html");
		PrintWriter out = response.getWriter();
		out.println("<html>");
		out.println("<head>");
		out.println("<title>Password Checker");
		out.println("</title>");
		out.println("</head>");
		out.println("<body bgcolor=\"#FFFFFF\">");
		out.println("<text>Holamundo</text>");
		
		out.println("</body>");
		out.close();
	}
}



